﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Hydra.Shell.Enumerations;
using Hydra.Shell.Interfaces;

namespace Hydra.Shell.Implementations
{
    public class HydraRunningDocumentLock
    {
        public HydraRunningDocumentInfo DocumentInfo { get; internal set; }
        public HydraRunningDocumentTableFlags LockType { get; internal set; }
        public IHydraDocumentLockHolder LockHolder { get; internal set; }
        public uint Cookie;
        private HydraRunningDocumentInfo document;
        private HydraRunningDocumentTableFlags dwRDTLockType;

        public HydraRunningDocumentLock(HydraRunningDocumentInfo document, HydraRunningDocumentTableFlags dwRDTLockType)
        {
            Cookie = ++document.LastCookie;
            this.document = document;
            this.dwRDTLockType = dwRDTLockType;
        }
    }
}
